<?php
/**
 * Created by PhpStorm.
 * User: sunshubo
 * Date: 2017/12/12
 * Time: 9:55
 */

class JoinActiveInfo_control extends MY_Controller
{
    function index()
    {
        $body = $this->input->raw_input_stream;
        $body = json_decode($body);
        $this->load->model('active/JoinActiveInfo_model', 'join');
        $res = $this->join->join_info($body);
        var_dump($res);
        if ($res) {
            $data = array('msg' => 'ok', 'result' => SUCCESS,);
        } else {
            $data = array('msg' => 'err', 'result' => ERROR,);
        }
        echo json_encode($data);
    }

}